package com.Apo1o.response;

public enum ResultCode {

        SUCCESS(200,"Success"),FAILURE(201,"Failure"),
            DATA_NOT_BLANK(300,"名字不能为空"),
            DATA_EXITS(301,"数据已经存在"),
            DATA_NOT_EXITS(302,"数据不存在"),
            SYSTEM_ERROR(500,"系统内部错误"),
    USER_IS_NOT_EXIST(1001, "用户不存在"),
    PWD_IS_WRONG(1002, "密码错误"),
    USER_NOT_LOGIN(1003, "用户未登录，请登录后访问"),
    TOKEN_TIMEOUT(1004, "登录超过五天，请重新登录"),
    TOKEN_VALIDATE_ERROR(1005, "token验证未通过"),
    PARAM_IS_EMPTY(1006, "参数为空"),
            PARAM_NULL(303,"参数为空");

   private int code;
       private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private ResultCode(int code, String msg){
            this.code=code;
            this.msg =msg;
        }
}


